const baseWidth = 1440; // 设计稿宽度
const baseHeight = 834; // 设计稿高度

/**
 * px to vh
 */
export const pxtovh = (px: number) => {
	return (px / baseHeight) * 100 + "vh";
};

/**
 * px to vw
 */
export const pxtovw = (px: number) => {
	return (px / baseWidth) * 100 + "vw";
};
